import {request} from "./request";
//查询所有
export function getCustomerLossPageInfo({pageNum,pageSize,cusName,cusNo,state}){
    return request({
        url: '/customerLoss/pager',
        method: 'get',
        params: {
            pageNum,
            pageSize,
            cusName,
            cusNo,
            state
        }
    })
}
//查询客户流失暂缓表信息
export function getCustomerReprievePageInfo({pageNum,pageSize}){
    return request({
        url: '/customerReprieve/pager',
        method: 'get',
        params: {
            pageNum,
            pageSize,
        }
    })
}
//确定流失
export function lose(id){
    return request({
        url: '/customerReprieve/ls/' + id,
        method: 'put',
        date:id
    })
}
//添加暂缓措施
export function addCustomerReprieve(customerReprieve){
    return request({
        url:'/customerReprieve/add',
        method:'post',
        data:customerReprieve
    })
}
//暂缓流失
export function temporary(id){
    return request({
        url: '/customerReprieve/zh',
        method: 'put',
        params:{
            id
        }
    })
}
//删除暂缓措施
export function delReprieve(id){
    return request({
        url: '/customerReprieve/sc/' + id,
        method: 'delete'
    })
}